package com.mingtu.jgspatrol.utils;

import static com.chad.library.adapter.base.BaseQuickAdapter.SCALEIN;

import android.app.Activity;

import com.mingtu.jgspatrol.activity.NewsDetailsActivity;
import com.mingtu.jgspatrol.activity.TaskDetails1Activity;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName :
 * @Author : wkk
 * @Date : 2021-6-16 09:22:33
 * @Email : 1281573890@qq.com
 * @Eescription :
 */
public class MyConstant {

    public static MyConstant constant;

    public static synchronized MyConstant getInstance() {
        if (constant == null) {
            constant = new MyConstant();
        }
        return constant;

    }

    public static final String TASK_TYPE_TRACK = "巡护";
    public static final String TASK_TYPE_SEND = "下发";
    public static final String TASK_TYPE_FIRE = "火情";


    //分享
    public static final Map<String, Class<? extends Activity>> PATH_MAP_LOCAL = new HashMap<String, Class<? extends Activity>>();
    public static final Map<String, Class<? extends Activity>> PATH_SERVER_MAP = new HashMap<String, Class<? extends Activity>>();
    public static final String NEWS_DETAILS_PATH = "/main/newsdetails";
    public static final String TASK_DETAILS_PATH = "/main/taskdetails";

    static {
        PATH_MAP_LOCAL.put(NEWS_DETAILS_PATH, NewsDetailsActivity.class);
        PATH_MAP_LOCAL.put(TASK_DETAILS_PATH, TaskDetails1Activity.class);

        PATH_SERVER_MAP.put("/main/newsdetails", NewsDetailsActivity.class);
        PATH_SERVER_MAP.put("/main/taskdetails", TaskDetails1Activity.class);
    }


    public static final Boolean isOpenLoadAnimation = true; //是否打开列表动画
    public static final Boolean isFirstOnly = false;
    public static final int animationType = SCALEIN;
    public static final Boolean isShowTile = true; //是否显示地图切片
    //Event
    public static final String REFRESH_FIRE_NOTICE_DATA = "refresh_fire_notice_data";
    public static final String REFRESH_APPROVE_DATA = "refresh_approve_data";
    public static final String REFRESH_INFRARED_DATA = "refresh_infrared_record_data";
    public static final String REFRESH_REPORTED_DATA = "refresh_reported_record_data";
    public static final String LOCK_SCREEN_TIME_DATA = "lock_screen_time_data";
    public static final String LOCK_SCREEN_MILEAGE_DATA = "lock_screen_mileage_data";
    public static final String REFRESH_TOP_TRACK_DATA = "refresh_top_track_data";
    public static final String REFRESH_MY_SIGN_IN_DATA = "refresh_my_sign_in_data";
    public static final String SHOW_FILTE_BIO = "showFiltePop";//显示生物发现的筛选
    public static final String CLOSE_FILTE_BIO = "closeFiltePop";//关闭生物发现的筛选
    public static final String REFRESH_MSG = "refreshMsg";//消息通知
    public static final String REFRESH_RECEIVE_TASK = "refresh_receive_task";//刷新我接收的任务
    public static final String FILTE_BIO = "filte_bio";//筛选生物

    public static final int MIN_ZOOM = 5; //地图切片的最小级层级
    public static final int MAX_ZOOM = 18; //地图切片的最大级层级

    public static final double[] LEFT_TOP_LOCATION = {114.0322310174022959, 31.8711841548294252}; //地图切片左上角的坐标
    public static final double[] RIGHT_BOTTOM_LOCATION = {114.1137621248279856, 31.7704323376030153}; //地图切片右下角的坐标

    public static final int ItemDecorationSpaces = 15;
    public static final int INFO_WINDOW_OFF_SET_Y = 40;
    public static final int INFO_WINDOW_OFF_SET_Y2 = 20;
    public static final int MAP_FACTORY_PADDING = 200;
    public static final int MAP_INDEX_TILE = 0; //切片图层级别
    public static final int MAP_INDEX = 99; //非切片图层级别
    public static final int BATTERY_WARNIG_LEVEEL = 3; //对低电量阀值
    public static final int BATTERY_MIDDLE_LEVEEL = 6; //中间电量
    public static final int SELECT_PEOPLE_RESULTCODE = 200;
    public static final int UPLOAD_MAP_RESULTCODE = 300;
    public static final int TRACK_AUTO_END_TIME = 12 * 60 * 60;

    public static String ADMIN = "administrator";
    public static final String TIM_SERVER = "https://console.tim.qq.com";
    public static final String TIM_ONLINE_STATUS = TIM_SERVER + "/v4/openim/query_online_status";
    public static final String HEAD_URL = "https://static.mingtukeji.com/img/img_head_view.png"; //头像
    public static final String JPUSH_SERVER = "https://api.jpush.cn/v3/push";
    public static final String URL_AGREEMENT = "https://www.mingtukeji.com/jzProtocol/"; //用户协议
    public static final String URL_PRIVACY = "https://www.mingtukeji.com/jzPolicy/"; //隐私声明
    public static final String URL_720 = "https://www.720yun.com/vr/08fjOguvzy3"; //720全景


    //    public static final String SERVER = "https://lks.mingtukeji.com";
    public static final String SERVER = "https://www.mingtukeji.com";
    //    public static final String SERVER = "http://192.168.3.43:8095";
    public static final String SERVER2 = "https://static.mingtukeji.com";
    public static final String HOST = "/jgs-api/app/api";
    public static final String HOST2 = "/jgs-api/app";
    public static final String HOST3 = "/jgs-api/air";
    public static final String HOST4 = HOST2 + "/camera";
    public static final String HOST5 = "/tiles/dabieshan/dom2";
    public static final String HOST6 = HOST2 + "/ecologyDevice";
    public static final String HOST7 = HOST2 + "/assignment";
    public static final String HOST8 = HOST2 + "/fruit";
    public static final String HOST9 = HOST2 + "/audit";
    public static final String HOST10 = HOST2 + "/species";
    public static final String HOST11 = HOST2 + "/document";
    public static final String HOST12 = HOST2 + "/equ";
    public static final String HOST13 = HOST2 + "/gridInfo";
    public static final String HOST14 = HOST2 + "/fire";
    public static final String HOST15 = HOST2 + "/park";
    //    public static final String GET_MENU = SERVER + HOST2 + "/sys/menu/appMenuList"; //菜单
    public static final String POST_UPLOAD = SERVER + HOST + "/uploadEvent"; //上报
    public static final String POST_INDEX_REMIND_COUNT = SERVER + HOST7 + "/remindCont"; //首页统计
    public static final String POST_INDEX_SUPER = SERVER + HOST7 + "/indexSupervise"; //督办提醒
    public static final String POST_INDEX_TASK_COUNT = SERVER + HOST8 + "/indexTaskCount"; //首页当日实时统计（领导）
    public static final String POST_INDEX_TASK_COUNT2 = SERVER + HOST8 + "/currentTaskInfo"; //本期巡护统计（普通）


    public static final String POST_SUPER_TODAY_LIST = SERVER + HOST7 + "/superviseTodayList"; //督办任务 今日到期列表
    public static final String POST_SUPER_OVER_LIST = SERVER + HOST7 + "/superviseList"; //督办任务 过期列表
    public static final String POST_SUPER_DETAILS = SERVER + HOST7 + "/superviseDetail"; //督办任务 详情

    public static final String POST_APPROVE_LIST = SERVER + HOST9 + "/auditList"; //审批列表
    public static final String POST_APPROVE_DETAILS = SERVER + HOST9 + "/detail"; //审批详情
    public static final String POST_APPROVE_SUBMIT = SERVER + HOST9 + "/auditSave"; //审批
    public static final String POST_APPROVE_MY_APPLY_LIST = SERVER + HOST9 + "/myApplyList"; //我的申请
    public static final String POST_APPROVE_APPLY = SERVER + HOST9 + "/applyAudit"; //审批申请
    public static final String POST_APPROVE_TYPE = SERVER + HOST9 + "/getAuditList"; //审批类型

    public static final String POST_ADD_SEND_TASK = SERVER + HOST2 + "/assignment/save"; //新增下发任务
    public static final String POST_SEND_TASK_DETAILS = SERVER + HOST2 + "/assignment/info"; //下发任务详情
    public static final String POST_TASK_DEPT = SERVER + HOST2 + "/assignment/selectDept"; //下发任务下的部门
    public static final String POST_TASK_DEPT_PERSON = SERVER + HOST2 + "/assignment/selectPerson"; //下发任务下的部门人员
    public static final String POST_CONTACTS_DEPT = SERVER + HOST2 + "/org/deptList"; //通讯录的部门
    public static final String GET_CONTACTS_DEPT_PERSON = SERVER + HOST2 + "/org/queryUserBydeptId"; //通讯录的部门下的人员
    public static final String POST_TASK_LIST_TRACK = SERVER + HOST2 + "/tasksummary/getDailyTaskList"; //任务单- 日常巡护列表
    public static final String POST_TASK_LIST_TEM = SERVER + HOST2 + "/assignment/myAssignmentList"; //任务单- 临时任务列表
    public static final String POST_FINISH_TASK__TEM = SERVER + HOST2 + "/assignment/finish"; //完成临时任务
    public static final String POST_TASK_TRACK_DETAILS = SERVER + HOST2 + "/tasksummary/getDailyTaskDetail"; //任务单-巡护任务详情
    public static final String POST_INDEX_REPORT_TASK = SERVER + HOST + "/incompleteUploadEvents"; //首页待完成的上报事件
    public static final String POST_FINISH_REPORT_TASK = SERVER + HOST + "/myAuditedEvents"; //首页已完成的上报事件

    public static final String POST_SEND_TASK_LIST = SERVER + HOST2 + "/assignment/list"; //任务单-下发任务列表（完成、已完成）
    public static final String POST_INDEX_TASK = SERVER + HOST2 + "/tasksummary/list"; //任务单-待办任务列表
    public static final String POST_INDEX_TASK_FINISH = SERVER + HOST2 + "/tasksummary/finishedList"; //任务单-已办任务列表

    public static final String POST_CONFIRM_FIRE = SERVER + HOST2 + "/tasksummary/confirmFire"; //确认火情


    public static final String POST_INDEX_TASK_DETAILS = SERVER + HOST2 + "/tasksummary/info"; //首页待办任务详情
    public static final String POST_UNDOTASK_COUNT = SERVER + HOST2 + "/tasksummary/undoTaskCount"; //未读消息个数
    public static final String POST_FIRE_DICT = SERVER + HOST2 + "/tasksummary/dictList"; //确认火情时的类型

    public static final String POST_INDEX_FIRE_LIST = SERVER + HOST14 + "/getPossibleFire"; //首页可疑火情列表
    public static final String POST_FIRE_NOTICE_DETAILS = SERVER + HOST14 + "/fireDetail"; //首页可疑火情详情
    public static final String POST_FIRE_NOTICE_CONFIRM = SERVER + HOST14 + "/confirmFire"; //首页可疑火情确认
    public static final String POST_FIRE_NOTICE_FINISH = SERVER + HOST14 + "/finishFire"; //首页可疑火情处理完成
    public static final String POST_FIRE_NOTICE_DELETE = SERVER + HOST14 + "/delete"; //首页可疑火情删除
    public static final String POST_FIRE_NOTICE_SEND = SERVER + HOST14 + "/fireTask"; //首页可疑火情发布

    public static final String GET_NEWS_TYPE = SERVER + HOST2 + "/content/deptTypes"; //5:新闻政策 4:通知公告
    public static final String POST_NEWS_LIST = SERVER + HOST2 + "/content/contentList"; //新闻列表
    public static final String POST_NEWS_DETAILS = SERVER + HOST2 + "/content/info"; //新闻列表
    public static final String POST_INDEX_NEWS_LIST = SERVER + HOST2 + "/content/indexList"; //首页新闻列表
    public static final String GET_NOTICE_LIST = SERVER + HOST2 + "/content/notifyContentType"; //通知公告栏目

    public static final String POST_GRID_INFO = SERVER + HOST13 + "/myGridInfo"; //网格化信息
    public static final String POST_GRID_PARENT_PEOPLE = SERVER + HOST13 + "/leaderList"; //网格的总林长列表
    public static final String POST_GRID_CHILD_PEOPLE = SERVER + HOST13 + "/childList"; //网格的查询子人员列表
    public static final String POST_GRID_INFO2 = SERVER + HOST13 + "/queryGridListByName"; //查询网格
    public static final String POST_GRID_RESOURCE = SERVER + HOST13 + "/myResource"; //我的网格资源


    public static final String POST_MESSAGE_COUNT = SERVER + HOST2 + "/myMessageCount"; //未读消息个数
    public static final String GET_RES_AREA_INFO = SERVER2 + "/tiles/dabieshan/vector/reserve.geojson"; //区域信息
    public static final String POST_MY_MESSAGE_LIST = SERVER + HOST2 + "/myMessageList"; //消息通知
    public static final String POST_MY_MESSAGE_DETAILS = SERVER + HOST2 + "/messageInfo"; //消息通知详情

    public static final String POST_TASK_STA_TOTAL2 = SERVER + HOST8 + "/taskCountByDate"; //成果单- 巡护数据总览 年  月  周
    public static final String POST_TASK_STA_TOTAL = SERVER + HOST8 + "/taskStationStatics"; //成果单-巡护数据总览
    public static final String POST_TASK_STA_TOTAL3 = SERVER + HOST8 + "/taskByDate"; //成果单-巡护数据总览
    public static final String POST_TASK_STA_TOP = SERVER + HOST8 + "/taskTop"; //成果单-排行榜
    public static final String POST_TASK_STA_TOP2 = SERVER + HOST8 + "/taskTopList"; //成果单-排行榜
    public static final String POST_TASK_STA_CASE = SERVER + HOST8 + "/taskSummaryCount"; //成果单-任务执行情况
    public static final String POST_TASK_STA_TREND = SERVER + HOST8 + "/taskNumByMonth"; //成果单-巡护趋势

    public static final String POST_REPORT_STA_TOATAL2 = SERVER + HOST8 + "/eventCountByTypeAndDate"; //成果单-上报数据总览 年  月  周
    public static final String POST_REPORT_STA_TOATAL = SERVER + HOST8 + "/eventCountByType"; //成果单-上报数据总览
    public static final String POST_REPORT_STA_TOATAL3 = SERVER + HOST8 + "/eventStatics"; //成果单-上报数据总览
    public static final String POST_REPORT_STA_TAG = SERVER + HOST8 + "/eventTypeTagCount"; //成果单-上报异常事件数据
    public static final String POST_REPORT_STA_TREND = SERVER + HOST8 + "/eventNumByMonth"; //成果单-上报趋势
    public static final String POST_TRACK_RECORD_ALL = SERVER + HOST8 + "/listTaskInfo"; //领导端巡护数据列表
    public static final String POST_REPORT_RECORD_ALL = SERVER + HOST8 + "/listEventInfo"; //领导端上报数据列表
    public static final String POST_SIGN_IN_RECORD = SERVER + HOST8 + "/cloclList"; //领导端打卡记录
    public static final String POST_SIGN_IN_RADIUS = SERVER + HOST + "/clockArea"; //打卡范围
    public static final String POST_MY_SIGN_IN_RECORD = SERVER + HOST8 + "/myCloclList"; //我的打卡记录


    public static final String POST_REPORT_EVENT_LIST_STAFF = SERVER + HOST + "/eventList"; //上报事件列表（处理、未处理）
    public static final String POST_EDPT_EVENT_LIST = SERVER + HOST + "/getDeptEventsList"; //上报事件列表
    public static final String POST_EDPT_TASK_COUNT = SERVER + HOST + "/getDeptTaskCount"; //记录单中的 巡护统计
    public static final String POST_EDPT_EVENTS_COUNT = SERVER + HOST + "/getDeptEventsCount"; //记录单中的 上报统计
    public static final String POST_EVENT_DETAILS = SERVER + HOST + "/eventUploadDetail"; //上报事件详情
    public static final String POST_AUDIT_EVENT = SERVER + HOST + "/auditEvents"; //审批上报事件
    public static final String POST_CLOCK_TASK = SERVER + HOST + "/clockTask"; //打卡签到

    //文档资料
    public static final String POST_UPLOAD_DOC = SERVER + HOST11 + "/saveAttach"; //上传文档资料
    public static final String POST_FILE_TYPE = SERVER + HOST11 + "/documentTypeList"; //资料类型列表
    public static final String POST_FILE_TYPE_SON = SERVER + HOST11 + "/documentInfolist"; //类型列表下子文件
    public static final String POST_FILE_ADD_TYPE = SERVER + HOST11 + "/saveType"; //新增分类
    public static final String POST_FILE_UPDATE_TYPE = SERVER + HOST11 + "/updateType"; //修改分类
    public static final String POST_FILE_DELETE_TYPE = SERVER + HOST11 + "/deleteType"; //删除分类
    public static final String POST_FILE_DELETE_DOC = SERVER + HOST11 + "/deleteDocument"; //删除文档


    //生物发现
    public static final String POST_RES_LIST = SERVER + HOST2 + "/res/res"; //生物资源列表
    public static final String POST_RES_DETAILS = SERVER + HOST2 + "/res/resDetail"; //生物资源详情
    public static final String POST_RES_FILTE_LEVE = SERVER + HOST2 + "/res/getLevelList"; //筛选-保护级别
    public static final String POST_RES_FILTE_GENUS = SERVER + HOST2 + "/res/getGenusList"; //筛选-属级别
    public static final String POST_RES_FILTE_KM = SERVER + HOST2 + "/res/getKmList"; //筛选-科级别
    public static final String POST_SPECIES_EXPERY = SERVER + HOST2 + "/species/expert"; //专家鉴定
    public static final String POST_SPECIES_REPLY = SERVER + HOST2 + "/species/addReply"; //回复评论
    public static final String POST_SPECIES_COMMENT = SERVER + HOST2 + "/species/addComment"; //评论
    public static final String POST_SPECIES_COMMENT_DELETE = SERVER + HOST2 + "/species/deleteComment"; //删除评论
    public static final String POST_SPECIES_REPLY_DELETE = SERVER + HOST2 + "/species/deleteReplay"; //删除回复
    public static final String POST_SPECIES_MYCOMMENT = SERVER + HOST2 + "/species/myCommentList"; //我评论的物种
    public static final String POST_SPECIES_MYFOUND = SERVER + HOST2 + "/species/myFoundList"; //我发现的物种
    public static final String POST_SPECIES_MYIDENTIFY = SERVER + HOST2 + "/species/myCheckupList"; //我鉴定的物种
//    public static final String POST_SPECIES_MYIDENTIFY = SERVER + HOST2 + "/species/info"; //采集的物种详情

    public static final String GET_AREA = SERVER2 + "/jigongshan/geodata/vector/reserve_gcj02.geojson"; //保护区域


    //智慧物联

    public static final String POST_AIR_COUNT_ALL = SERVER + HOST3 + "/airCountAll"; //飞行总数据
    public static final String POST_AIR_RECORD = SERVER + HOST3 + "/record"; //飞行记录
    public static final String POST_AIR_BASEINFO = SERVER + HOST3 + "/baseInfo"; //无人机基本信息
    public static final String POST_AIR_LAST_LOCATION = SERVER + HOST3 + "/lastLocation"; //无人机最新位置信息


    public static final String POST_INF_DEPT_LIST = SERVER + HOST4 + "/irCameraDeptList"; //红外部门筛选
    public static final String POST_INF_WARNING_LIST = SERVER + HOST4 + "/messageList"; //红外消息预警列表
    public static final String POST_INF_DEQUI_LIST = SERVER + HOST4 + "/irCameraList"; //红外设备列表
    public static final String POST_INF_AUTH = SERVER + HOST4 + "/auditPic"; //图片鉴定
    public static final String POST_INF_ALL_TOTAL = SERVER + HOST4 + "/allTotal"; //数据分析-总计
    public static final String POST_INF_DEQUI_STA = SERVER + HOST4 + "/cameraCount"; //数据分析-设备分析
    public static final String POST_INF_MONTH_STA = SERVER + HOST4 + "/monthStatics"; //数据分析-月度分析
    public static final String POST_INF_RECORD_LIST = SERVER + HOST4 + "/listAllRecords"; //红外监测记录查询
    public static final String POST_INF_CAMERA_COUNT = SERVER + HOST4 + "/irCameraCount"; //红外相机统计
    public static final String POST_INF_CAMERA_ANIMAL_COUNT = SERVER + HOST4 + "/animalCount"; //红外相机累计发现动物排行
    public static final String POST_INF_CAMERA_ANIMAL_MONTH_ANALYSIS = SERVER + HOST4 + "/animalDiscoverMonth"; //红外相机动物出没月分析
    public static final String POST_INF_CAMERA_ANIMAL_HOUR_ANALYSIS = SERVER + HOST4 + "/animalDiscoverHour"; //红外相机动物出没时分析


    public static final String POST_VOICE_SEND = SERVER + HOST2 + "/voiceSend"; //发送大屏控制
    public static final String POST_OUTDOOR_SEND = SERVER + HOST2 + "/outdoorMsg"; //户外屏控制

    public static final String POST_EC_DEVICE = SERVER + HOST6 + "/appDeviceList"; //生态设备信息
    public static final String POST_WEATHER_DATA = SERVER + HOST6 + "/appMeteorologyData"; //气象实时数据
    public static final String POST_HYDRO_DATA = SERVER + HOST6 + "/appWaterData"; //水文实时数据


    public static final String POST_WEATHER_NOW = SERVER + HOST6 + "/weatherNow"; //实时天气数据
    public static final String POST_AIR_NOW = SERVER + HOST6 + "/airNow"; //实时空气数据


    public static final String GET_ERROR_LOG = SERVER + HOST2 + "/errLogUpload"; //错误日志收集
    public static final String POST_USER_SIG = SERVER + HOST2 + "/im/genUserSig2"; //获取腾讯实时音视频签名
    public static final String GET_KEY_INFO = SERVER + HOST2 + "/im/keyInfo"; //keyinfo

    public static final String POST_SELECT_TAG = SERVER + HOST + "/selectTags";

    public static final String POST_CAMERA_MATTER_PEOPLE = SERVER + HOST12 + "/zdrySearch";//重点人员查询
    public static final String POST_CAMERA_STRANGE_PEOPLE = SERVER + HOST12 + "/unknowSearch";//陌生人员查询
    public static final String POST_CAMERA_CAR_TAKE = SERVER + HOST12 + "/getPicVehicleList";//抓拍车辆查询
    public static final String POST_CAMERA_TOTAL_INFO = SERVER + HOST12 + "/cameraAppCount";//设备总数统计

    public static final String POST_CAMERA_TYPE = SERVER + HOST12 + "/queryCameraType";//摄像头类型
    public static final String SHARE_URL = SERVER + "/lksapp/task_share2.html?";//摄像头类型

    //停车管理
    public static final String POST_PARK_LIST = SERVER + HOST15 + "/parkList";//停车场列表
    public static final String POST_RESERVATION_LIST = SERVER + HOST15 + "/reservationList";//预约记录
    public static final String POST_ADD_WHITE_LIST = SERVER + HOST15 + "/addWhite";//添加白名单
    public static final String POST_MODIFY_PARK_INFO = SERVER + HOST15 + "/modifyParkInfo";//修改停车场设置
    public static final String POST_WHITE_LIST = SERVER + HOST15 + "/whiteList";//白名单列表
    public static final String POST_DELETE_WHITE_LIST = SERVER + HOST15 + "/deleteWhite";//删除白名单
    public static final String POST_RESERVATION_DETAIL = SERVER + HOST15 + "/reservationDetail";//预约详情

    //网易云信
    public static final String POST_YX_REGISTER = "https://open.yunxinapi.com/im/v2/accounts";//注册IM账号


}

